package io.renren.modules.order_pay.entity.VO;

import com.baomidou.mybatisplus.annotation.TableId;
import io.renren.common.utils.CommonUtils;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class V9OrderPayVO {

    /**
     *
     */
    @TableId
    private Integer payId;
    /**
     *
     */
    private String spbillno;
    /**
     * 状态
     */
    private Integer payStatus;
    /**
     * 外部交易单号
     */
    private String listid;
    /**
     * 总金额
     */
    private BigDecimal totalFee;
    /**
     * 会员价
     */
    private BigDecimal memberFee;
    /**
     * 实际支付
     */
    private BigDecimal payFee;
    /**
     * 积分支付
     */
    private BigDecimal integralFee;
    /**
     * 余额支付
     */
    private BigDecimal balanceFee;
    /**
     * 订单状态
     */
    private Integer orderStatus;
    /**
     * 添加时间
     */
    private Integer addTime;
    private transient String addTimeStr;
    /**
     * 支付时间
     */
    private Integer payTime;
    private transient String payTimeStr;

    public String getAddTimeStr() {
        return CommonUtils.timeStampToTime(CommonUtils.timeStampPlus3(addTime));
    }

    public void setAddTimeStr(String addTimeStr) {
        this.addTimeStr = addTimeStr;
    }

    public String getPayTimeStr() {
        return CommonUtils.timeStampToTime(CommonUtils.timeStampPlus3(payTime));
    }

    public void setPayTimeStr(String payTimeStr) {
        this.payTimeStr = payTimeStr;
    }

    /**
     * 会员码
     */
    private Integer userId;
    /**
     * 支付方式
     */
    private String payment;
    /**
     * 积分
     */
    private Integer integral;
    /**
     *
     */
    private Integer operatorId;
    /**
     *
     */
    private BigDecimal chargeFee;
    /**
     * 优惠券抵扣
     */
    private Integer activityFee;
    /**
     *
     */
    private Integer activityId;
    /**
     *
     */
    private Integer isNew;
    /**
     *
     */
    private BigDecimal usd;


    private String phpssouid;

    private String username;
}
